package exception;

import java.io.FileNotFoundException;
import java.io.IOException;

public class ThrowsDemo2 {
    public void dosome() throws IOException,AWTException{}
}


class SubClass extends ThrowsDemo2{
    //public void dosome() throws IOException,AWTException{}
    //public void dosome(){}
    //public void dosome() throws IOException{}
    //public void dosome() throws FileNotFoundException {}

    //不能抛父类型
    //public void dosome() throws IllegalAgeException{}
    //public void dosome() throws Exception{}
}
